#ifndef __MY_ACTIONS_H__
#define __MY_ACTIONS_H__

/** @brief Remove the node
*/

#include "cocos2d.h"
USING_NS_CC;

class CCMyRemvoe : public CCActionInstant
{
public:
	CCMyRemvoe(){
		setCleanup(true);
// 		m_iCCMyRemove++;
// 		CCString s;
// 		s.initWithFormat(" CCMyRemvoe() : %d", m_iCCMyRemove);
// 		CCLOG(s.getCString());
	}
	virtual ~CCMyRemvoe(){
// 		m_iCCMyRemove--;
// 		CCString s;
// 		s.initWithFormat("~CCMyRemvoe() : %d", m_iCCMyRemove);
// 		CCLOG(s.getCString());
	}

	//super methods
    virtual void update(float time);
    virtual CCFiniteTimeAction * reverse(void);
    virtual CCObject* copyWithZone(CCZone *pZone);
public:

    /** Allocates and initializes the action */
    static CCMyRemvoe * create(bool bCleanup = true);

	void setCleanup(bool b) {
		m_bCleanup = true;
	}
	bool isCleanup() const {
		return m_bCleanup;
	}
	bool m_bCleanup;

//	static int m_iCCMyRemove;
};

#endif